import request from '@/utils/request'

// 查询藏品订单列表
export function listOrder(query) {
    return request({
        url: '/order/order/list',
        method: 'get',
        params: query
    })
}

// 查询藏品订单详细
export function getOrder(collectionOrderId) {
    return request({
        url: '/order/order/' + collectionOrderId,
        method: 'get'
    })
}

// 新增藏品订单
export function addOrder(data) {
    return request({
        url: '/order/order',
        method: 'post',
        data: data
    })
}

// 修改藏品订单
export function updateOrder(data) {
    return request({
        url: '/order/order',
        method: 'put',
        data: data
    })
}

// 删除藏品订单
export function delOrder(collectionOrderId) {
    return request({
        url: '/order/order/' + collectionOrderId,
        method: 'delete'
    })
}